home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 23
/
Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso
/
Aminet
/
dev
/
e
/
EasyPLUGINs.lha
/
EasyPLUGINs
/
examples
/
rawkey_demo.e
< prev
next >
Wrap
Text File
|
1997-10-05
|
751b
|
40 lines
/*
$VER: RawKey Demo V1.00 - By Fabio Rotondo
Part of the EasyPLUGINs package
V1.00 - Inital Release
*/
OPT OSVERSION=37
MODULE 'tools/EasyGUI', 'tools/exceptions',
'easyplugins/rawkey'
PROC main() HANDLE
DEF n=NIL:PTR TO rawkey
NEW n.init()
n.setattrs([PLA_KEY_UP, {up}, PLA_KEY_CONTROL, {control}, NIL, NIL])
easyguiA('Test RawKey', [ROWS,
[TEXT, 'Press Cursor Up OR CTRL keys', NIL, TRUE, 10],
[SBUTTON,1, 'Quit!'],
[PLUGIN, 0, n]
]
)
EXCEPT DO
report_exception()
END n
ENDPROC
PROC up() IS WriteF('You pressed Cursor Up!\n')
PROC control() IS WriteF('You Pressed Control Key!!\n')